Before your application can call any QuickTime VR Manager routines, you have to call InitializeQTVR so that QuickTime VR can set up its internal data structures. If you make any other calls to the QuickTime VR Manager before calling InitializeQTVR , those calls will either return a floating-point value of zero or they will return an error code of 6661, which indicates that QuickTime VR has not been initialized.
When your application or process has finished using QuickTime VR, it should call TerminateQTVR .
The InitializeQTVR and TerminateQTVR routines are required for QuickTime VR to run in a Windows environment. They do nothing in the Mac OS environment, but should be included for cross-platform compatibility.
You can call InitializeQTVR and TerminateQTVR more than once. The first time you call InitializeQTVR , the code loads the QuickTime VR library and looks up some functions. Subsequent calls to InitializeQTVR do not have much overhead.